{% extends 'news/base.html' %}
{% block title %}{{ title }}{% endblock title %}

{% block script %}
    <script type="text/javascript" src="../../static/news/js/index.js"></script>
{% endblock script %}

{% block menu %}
            <ul class="menu fl">
                {% for item in categories %}
                <li class="{% if loop.first %}active{% endif %}" data-cid="{{ item.id }}"><a href="javascript:;">{{ item.name }}</a></li>
                {% endfor %}
            </ul>
{% endblock menu %}

{% block content %}
    <div class="conter_con">
        <ul class="list_con fl">
        </ul>
{% endblock content %}
{% block rank %}
        <div class="rank_con fr">
            <div class="rank_title">
                <h3>点击排行</h3>
            </div>
            <ul class="rank_list">
                {% for item in news_clicks %}
{#                <li><span class="{{ loop.index | index_class }}">{{ loop.index }}</span><a href="#">{{ item.title }}</a></li>#}
                <li><span class="{{ loop.index | index_class }}">{{ loop.index }}</span><a href="/news/{{ item.id }}">{{ item.title }}</a>{{ item.title }}</li>
                {% endfor %}
           </ul>
        </div>
    </div>
{% endblock rank %}
